import Base from './base'

const api = new Base()

// 修改个人信息
export const addAddress = (params) => api.post('/userAddress', params)
export const delAddress = (id) => api.delete(`/userAddress/${id}`)
export const getAddressById = (id) => api.get(`/userAddress/${id}`)
export const getAddressList = () => api.get(`/userAddress/list`)
export const getAreaList = (pid) => api.get(`/sysAddress/list/${pid}`)
export const editAddress = (id, params) => api.post(`/userAddress/${id}`, params)
